#!/bin/sh
# Source tutorial run functions

cat log.wallHeat| grep 'Time' | cut -d' ' -f3 > c1.txt 
cat log.wallHeat | grep 'cylinder' | cut -d' ' -f2 > c2.txt
awk 'FNR>1' c1.txt > c3.txt
awk 'FNR>1' c2.txt > c4.txt
sed '$d' < c3.txt > c5.txt
paste c5.txt c4.txt > wallHeatFlux.dat
rm c*.txt

gnuplot heatFlux.gnu

